#!/usr/bin/env python
# -*- encoding: utf-8 -*-
# Project: spd-sxmcc
"""
@author: lyndon
@time Created on 2019/2/23 16:53
@desc
"""

from op_mysql import OPMysql
db_url = 'sqlalchemy+mysql+taskdb://root:newpasswd@10.209.156.230:3306/test'
#opm = OPMysql('mysql://root:py_spd@10.209.156.230:3306/test')
opm = OPMysql(db_url)

sql = "select * from tb_http_url_distinct_ext"
res = opm.op_select_all(sql)
print(res)
#释放资源
opm.dispose()
